package com.suemi.rpc.entity;

import java.util.Arrays;

public class RpcRequest {

  private long requestId;

  private String interfaceName;

  private String methodName;

  private Class<?>[] paramTypes;

  private Object[] paramValues;

  public long getRequestId() {
    return requestId;
  }

  public void setRequestId(long requestId) {
    this.requestId = requestId;
  }

  public String getInterfaceName() {
    return interfaceName;
  }

  public void setInterfaceName(String interfaceName) {
    this.interfaceName = interfaceName;
  }

  public String getMethodName() {
    return methodName;
  }

  public void setMethodName(String methodName) {
    this.methodName = methodName;
  }

  public Class<?>[] getParamTypes() {
    return paramTypes;
  }

  public void setParamTypes(Class<?>[] paramTypes) {
    this.paramTypes = paramTypes;
  }

  public Object[] getParamValues() {
    return paramValues;
  }

  public void setParamValues(Object[] paramValues) {
    this.paramValues = paramValues;
  }

  @Override
  public String toString() {
    return "RpcRequest{" +
            "requestId=" + requestId +
            ", interfaceName='" + interfaceName + '\'' +
            ", methodName='" + methodName + '\'' +
            ", paramTypes=" + Arrays.toString(paramTypes) +
            ", paramValues=" + Arrays.toString(paramValues) +
            '}';
  }
}
